<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/1/18
  Time: 18:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="sidebar-header d-flex align-items-center">
    <div id="avatar" class="avatar">
        <c:if test="${sessionScope.userBaseInfo.pic == null}">
            <img id="headPic" src="${pageContext.request.contextPath}/xbUpload/avatar-6.jpg" alt="..." class="img-fluid rounded-circle">
        </c:if>
        <c:if test="${sessionScope.userBaseInfo.pic != null}">
            <img id="headPic" src="${sessionScope.userBaseInfo.pic}" style="width: 50px;height: 50px;" alt="..." class="img-fluid rounded-circle">
        </c:if>
    </div>
    <div class="title">
        <h1 class="h5">${sessionScope.userBaseInfo.username}</h1>
        <p>${sessionScope.userBaseInfo.deptName}</p>
    </div>
</div>